/**
 * 反射
 *   详情: https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Reflect
 */
var obj = {
    name: 'Jack',
    sex : 1
};
console.log(Reflect.get(obj, 'name'));
Reflect.set(obj, 'name', 'Tom');
console.log(obj.name);
console.log(Reflect.has(obj, 'sex'));

function fn(a, b, c) {
    console.log(a);
    console.log(b);
    console.log(c);
    console.log(this);
}
Reflect.apply(fn, obj, ['a', 1, [1, 2, 3]]);